@echo off

set SolutionDir=%1
set Configuration=%2
set Project=%3

del "%SolutionDir%%Configuration%\config.json"
del "%SolutionDir%%Configuration%\libclamav.dll"
del "%SolutionDir%%Configuration%\MD5Hash.cl"
del "%SolutionDir%%Configuration%\Common.h"
rmdir /Q "%SolutionDir%%Configuration%\Signatures\"

copy "%Project%Common.h" /B "%SolutionDir%%Configuration%\Common.h" /B /Y
copy "%Project%MD5Hash.cl" /B "%SolutionDir%%Configuration%\MD5Hash.cl" /B /Y
copy "%SolutionDir%Config\config.json" /B "%SolutionDir%%Configuration%\config.json" /B /Y
copy "%SolutionDir%ClamAV\%Configuration%\libclamav.dll" /B "%SolutionDir%%Configuration%\libclamav.dll" /B /Y
mkdir "%SolutionDir%%Configuration%\Signatures\"
copy "%SolutionDir%ClamAV\Signatures" "%SolutionDir%%Configuration%\Signatures\" /Y
